package model

import "time"

type ChargeStatistic struct {
	AGVId     string    `json:"agv_id" bson:"agv_id"`         //小车id
	StartTime time.Time `json:"start_time" bson:"start_time"` //开始时间
	EndTime   time.Time `json:"end_time" bson:"end_time"`     //结束时间
	TotalTime float64   `json:"total_time" bson:"total_time"` //充电时间
	//Uuid      string    `json:"-" bson:"uuid"`                //标志
	ChargeNum uint8  `json:"-" bson:"charge_num"` //充电桩伸出次数
	TaskId    uint64 `json:"-" bson:"task_id"`    //充电任务ID
}

func (ChargeStatistic) TableName() string {
	return "t_statistic_charge"
}

type Efficency struct {
	AGVId     string    `json:"agv_id" bson:"agv_id"`
	StartTime string    `json:"start_time" bson:"start_time"`
	Time      time.Time `json:"-" bson:"time"`
	TotalTime float64   `json:"total_time" bson:"total_time"`
	TaskNum   uint64    `json:"task_num" bson:"task_num"`
}

func (Efficency) TableName() string {
	return "t_statistic_efficency"
}
